package com.xz.realdemo.factory;

import com.xz.realdemo.model.Connection;
import com.xz.realdemo.model.Statement;

/**
 * @author 张志航     
 * @version V1.0.0
 * @projectName design_mode
 * @title     DababaseFactory   
 * @package    com.xz.realdemo.factory  
 * @date   2019/11/27 11:43  
 * @explain
 */
public interface DatabaseFactory {

    Connection createConnection();


    // 重载，传入端口号以及地址
    Connection createConnection(String ip,String port);


    Statement createStatement();
}
